import { PdfComponentProps } from "../types";
import { Text, TextProps } from '@react-pdf/renderer';
export type PdfTextProps = PdfComponentProps & TextProps & { hidden?: boolean }
export const PdfText = (props: PdfTextProps) => {
    const { label, hidden, value, ...textProps } = props;
    return <Text {...textProps}>{hidden ? '' : label}{value}</Text >
};
